//
//  AppDelegate.m
//  JKFuYinProject
//
//  Created by jiukuyinyue on 2017/9/4.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "AppDelegate.h"
#import "AppDelegate+GDTSplashAd.h"
//#define NotificationLock CFSTR("com.apple.springboard.lockcomplete")
//#define NotificationChange CFSTR("com.apple.springboard.lockstate")
//#define NotificationPwdUI CFSTR("com.apple.springboard.hasBlankedScreen")
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [super application:application didFinishLaunchingWithOptions:launchOptions];
    
    [self setupApplication:@"LCTabBarController" ControllerType:1];
    [self guangDiantong];//腾讯广点通广告
    
//    CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, screenLockStateChanged, NotificationLock, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
//
//    CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, screenLockStateChanged, NotificationChange, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
    return YES;
}




////
//static void screenLockStateChanged(CFNotificationCenterRef center,void* observer,CFStringRef name,const void* object,CFDictionaryRef userInfo){
//
//    NSString* lockstate = (__bridge NSString*)name;
//
//    if ([lockstate isEqualToString:(__bridge  NSString*)NotificationLock]) {
//
//        NSLog(@"locked.锁屏");
//
//    }else{
//        NSLog(@"状态改变了");
//
//    }
//}

@end
